<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
		<groupId>{{groupId}}</groupId>
		<artifactId>{{artifactId}}</artifactId>
		<version>{{artifactVersion}}</version>
	</parent>
	<name>{{apiModuleArtifactId}}</name>
    <artifactId>{{apiModuleArtifactId}}</artifactId>
    <packaging>jar</packaging>
    
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    
    <build>
        <plugins>
            <plugin>
				<groupId>io.swagger</groupId>
				<artifactId>swagger-codegen-maven-plugin</artifactId>
				<configuration>
					<output>./</output>
					<!-- ignore sub module generate -->
					<skipGenerate>true</skipGenerate>
					<inputSpec>swagger.yaml</inputSpec>
					<language>spring-mvc-wecloud</language>
					<library>spring-mvc</library>
				</configuration>
			</plugin>
        </plugins>
    </build>
    
    <dependencies>
    	<!-- model dependency -->
    	<dependency>
            <groupId>{{groupId}}</groupId>
            <artifactId>{{modelModuleArtifactId}}</artifactId>
            <version>{{artifactVersion}}</version>
        </dependency>

        <!--Spring dependencies -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
        </dependency>

        <dependency>
			<groupId>io.swagger</groupId>
	        <artifactId>swagger-annotations</artifactId>
		</dependency>

        {{#java8}}
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jsr310</artifactId>
        </dependency>
        {{/java8}}
        {{^java8}}
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-joda</artifactId>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
        {{/java8}}

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
    </dependencies>
    
</project>
